<% ads = get_res_ads %>
<% ad = ads[0] %><% unless ad.nil? %><br/><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:sid=>my_sid,:cn=>my_cn %><% end %>
<%= @resource.name %><%= "<br/>" %>
<% @img_arry.each_with_index  do |img_src,index|  %>
  <img alt="" src="<%= img_src %>"  />
  <%=  "<br/>" %>
  <%= link_to "高清大图" ,
    :controller => 'col',
    :action => 'show_big',:resource => @resource,:sid=>my_sid,:page_for => @page_for,:go_page =>@go_page,:cn=>my_cn %>
  <%= link_to "免费下载" ,
    :controller => 'col',
    :action => 'download',:resource => @resource,:sid=> my_sid,:index=>index,:type=>$small,:page_for => @page_for,:cn=>my_cn %>
  <%=  "<br/>" %>
<% end %>
<%= will_paginate @img_arry,:type => 'wml',:params => {:sid => my_sid,:cn=>my_cn} %><%=  "<br/>" %>
<%= page_entries_info @img_arry,:type => 'wml',:is_img => true %>
<%=  "<br/>" %>
<%=h "标签:"%>
<% @tag_arry.each do |rt| %>
  <%= link_to rt.tag.name ,
    :controller => 'col',
    :action => 'series',:tag => rt.tag,:sid=>my_sid,:cn=>my_cn %>
<% end %>
<%=  "<br/>" %>
<% unless @res_prev.nil? && @res_next.nil? && @res_nnext.nil?%>
  <%= "【相关套图推荐】" %>
<% end %>
<% unless @res_prev.nil? %>
  <%=  "<br/>" %>
  <%= link_to @res_prev.name ,
    :controller => 'col',
    :action => 'show_small',:resource => @res_prev.id,:sid=>my_sid,:page_for => @page_for,:go_page => 1,:cn=>my_cn %>
<% end %>
<% unless @res_next.nil? %>
  <%=  "<br/>" %>
  <%= link_to @res_next.name ,
    :controller => 'col',
    :action => 'show_small',:resource => @res_next.id,:sid=>my_sid,:page_for => @page_for,:go_page => 1,:cn=>my_cn %>
<% end %>
<% unless @res_nnext.nil? %>
  <%=  "<br/>" %>
  <%= link_to @res_nnext.name ,
    :controller => 'col',
    :action => 'show_small',:resource => @res_nnext.id,:sid=>my_sid,:page_for => @page_for,:go_page => 1,:cn=>my_cn %>
<% end %>
<% ad = ads[1] %><% unless ad.nil? %><br/><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:sid=>my_sid,:cn=>my_cn %><% end %>
<% ad = ads[2] %><% unless ad.nil? %><br/><%= link_to ad.name,:controller => 'col', :action => 'show_more',:ad => ad.id,:sid=>my_sid,:cn=>my_cn %><% end %>
<% c_d = '0'
if @resource.oppose_num.to_i != 0 || @resource.support_num.to_i != 0
  c_d = (@resource.support_num*100/(@resource.oppose_num+@resource.support_num)).to_s
end
%>
<br/><%= "【投票】鉴赏度:#{c_d}%" %><br/>
<%= link_to "鲜花",:controller => 'col', :action => 'show_small',:id => @col.id,:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:oper_type => 1,:cn=>my_cn %>[<%=@resource.support_num%>]
<%= link_to "鸡蛋",:controller => 'col', :action => 'show_small',:id => @col.id,:resource => @resource,:go_page=>@go_page,:sid=>my_sid,:oper_type => 2,:cn=>my_cn %>[<%=@resource.oppose_num%>]<br/>
<%= "点击人气:#{@resource.click_num}"%><br/>
<% if @user_comments.size > 0 %>
  【最新评论】更多<%= link_to "[#{@uc_count}]" ,:controller => 'user_cfg',:action => 'user_comment',:resource => @resource,:sid=> my_sid,:cn=>my_cn %><br/>
  <% @user_comments.each_with_index do|com,index| %>
    <%= link_to "#{get_nickname(com)}:#{get_words(com.comment,6)}"  ,:controller => 'user_cfg',:action => 'user_comment',:resource => @resource,:sid=> my_sid,:cn=>my_cn %><br/>
  <% end %>
<% end %>
<input type="text" size="12" name="comment" value="" />
<anchor>
  提交评论<go method='post' href='/col/show_small/'>
    <postfield name='comment' value='$(comment)'/>
    <postfield name='sid' value='<%= my_sid %>'/>
    <postfield name='cn' value='<%=my_cn%>'/>
  </go>
</anchor>